package factory

import (
	"context"
	"mall_admin_api/biz/handler/common"
)

type UploadInterface interface {
	Upload(ctx context.Context) (string, error)
	PackImageURL(ctx context.Context, host string, list []string) ([]string, error)
}

type UploadFactoryType string

const (
	LocalUpload = "local"
)

func GetUploadFactory(f *common.Response) map[UploadFactoryType]*UploadFactory {
	return map[UploadFactoryType]*UploadFactory{
		LocalUpload: newUploadFactory(f),
	}
}
